package com.neouton.crm.sales.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.neouton.common.entity.BaseEntityVO;
import lombok.Data;

/**
 * 阶段表
 * @TableName sales_stage
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("sales_stage")
public class SalesStageVO extends BaseEntityVO implements Serializable {
    /**
     * 阶段主键
     */
    @TableId(type = IdType.AUTO)
    private Integer salesStageId;

    /**
     * 阶段关系主键（机会/项目主键）
     */
    private Integer salesRelationId;

    /**
     * 阶段关系类型（机会1/项目2）
     */
    private Integer stageClass;

    /**
     * 阶段状态id
     */
    private Integer stageStateId;

    /**
     * 阶段备注
     */
    private String stageRemark;

    private String creatorName;

    private String creatorAccount;

    @TableField("created_by")
    private Integer creator;

    @TableField("creation_date")
    private Timestamp createDataTime;

    @TableField("last_update_date")
    private Timestamp lastUpdateTime;

    /**
     * 可用状态（软删除）
     */
    private Integer flag;

    private static final long serialVersionUID = 1L;
}